//
//  MyAddressViewCell.m
//  PosApp
//
//  Created by 刘萍 on 2018/9/10.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "MyAddressViewCell.h"

@implementation MyAddressViewCell

- (void)setModel:(MyAddressModel *)model{
    self.CellBackView.layer.shadowColor = [UIColor colorWithRed:51/255.0 green:51/255.0 blue:51/255.0 alpha:0.11].CGColor;
    self.CellBackView.layer.shadowOffset = CGSizeMake(1,1);
    self.CellBackView.layer.shadowOpacity = 1;
    self.CellBackView.layer.shadowRadius = 2;
    self.CellBackView.layer.cornerRadius = 10;
    
    self.SurNameLabel.layer.cornerRadius = self.SurNameLabel.bounds.size.height/2;
    self.SurNameLabel.layer.masksToBounds = YES;
    self.SurNameLabel.text = [model.address_name substringToIndex:1];
    self.NameLabel.text = [NSString stringWithFormat:@"%@",model.address_name];
    self.iPhoneLabel.text = [NSString stringWithFormat:@"%@",model.address_phone];
    if ([model.address_default isEqual:@"1"]) {
        self.SymbolImage.hidden = NO;
        self.AddressLabel.text = [NSString stringWithFormat:@"          %@%@",model.address_diqu,model.address_xx];
    }else{
        self.SymbolImage.hidden = YES;
        self.AddressLabel.text = [NSString stringWithFormat:@"%@%@",model.address_diqu,model.address_xx];
    }
    
    
}

- (void)CreateMyAddressViewCell{
    
}
- (IBAction)ClickOnBtnToChangeTheAddress:(id)sender {
    [self.delegate ToChangTheAddressNewsWithCellID:self.tag];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
